//app.js
App({
  onLaunch: function () {
    // console.log(new Date(new Date().toString()).toString())
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
    
  },
 
  globalData: {
    userInfo: null,
    kind: "",
    user: {},
    windowWidth: wx.getSystemInfoSync().windowWidth,
    windowHeight: wx.getSystemInfoSync().windowHeight,
    huohua_server: "",
    my_server:"https://www.ourspark.org",
    currentUser: {},
    school_list:[
      "北京邮电大学"
    ],
    exam: {},
    warning: []
  }
})